package cn.rongdao.jrkabao.model.cashadvance;

import com.mifengkong.frtools.http.request.HttpFunction;

import java.util.List;

import cn.rongdao.jrkabao.bean.cashadvance.CashByCreditCardBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/11/6
 */

public class GetAllPassWayModel extends BaseKaMaoModel {

    public static GetAllPassWayModel getInstance() {
        return getPresent(GetAllPassWayModel.class);
    }

    public void execute(Observer<List<CashByCreditCardBean.PassWay>> observer) {
        Observable<List<CashByCreditCardBean.PassWay>> observable = mServletApi.getAllPassWay(mParams).map(new HttpFunction<List<CashByCreditCardBean.PassWay>>());
        toSubscribe(observable, observer);
    }

}